using System;
using JoyfulHomeJourney.BackEnd.Infrastructure.EFCore;
using JoyfulHomeJourney.BackEnd.Infrastructure.Dtos.Requests.Objects;
namespace JoyfulHomeJourney.BackEnd.Server.Instances.Extends.Requests
{
	public static class EntityTasksUpdateExtend
{
		public static Tasks ToUpdateEntity(this RequestTasksDto dto)
		{
			return new Tasks
			{
				IsDeleted = dto.deleted,
				TDescription = dto.description,
				TDueDate = dto.dueDate,
				TId = dto.id,
				TPriority = dto.priority,
				TStatus = dto.status,
				TTitle = dto.title,
			};
		}
	}
}
